// 引入即可处理全部js兼容性
// import '@babel/polyfill';
// import 'core-js/stable';
// import 'regenerator-runtime/runtime';

const add = function add(x, y) {
  return x + y;
};

const promise = new Promise((resolve) => {
  setTimeout(() => {
    // eslint-disable-next-line
    console.log('定时器执行完了~');
    resolve();
  }, 1000);
});
// 下一行eslint所有规则都失效（下一行不进行eslint检查）
// eslint-disable-next-line
console.log(promise);
// eslint-disable-next-line
console.log(add(1, 2));
